<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'favorite-form',
        'enableAjaxValidation' => false,
            ));
    ?>

    <?php echo $form->errorSummary($model); ?>
    <fieldset>
        <legend>Basic Information</legend>
        <div class="row">
            <?php echo $form->labelEx($model, 'sitename'); ?>
            <?php echo $form->textField($model, 'sitename', array('size' => 60, 'maxlength' => 128)); ?>
            <?php echo $form->error($model, 'sitename'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'category'); ?>
            <?php echo $form->dropDownList($model, 'category', Lookup::model()->items('siteType')); ?>
            <?php echo $form->error($model, 'category'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'url'); ?>
            <?php echo $form->textField($model, 'url', array('size' => 60, 'maxlength' => 128)); ?>
            <?php echo $form->error($model, 'url'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'description'); ?>
            <?php echo $form->textArea($model, 'description', array('rows' => 6, 'cols' => 50)); ?>
            <?php echo $form->error($model, 'description'); ?>
        </div>
    </fieldset>
    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->